package com.chance.cc.crawler.development.command.publish.jqka;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.jqka.JqkaCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.news.NewsCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.news.NewsScheduleTrigger;


/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/21 13:45
 * @Description
 *      同花顺
 **/
public class JqkaPublishCrawlerJob {
    private static final String domainId = "10jqka";

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = JqkaCrawlerScheduleJob.publish10jqkaCrawlerScheduleJobInfo();
        NewsScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey(),domainId,"同花顺");
        NewsCrawlerScript.publishCrawlerNodeScript(domainId);
    }
}
